
<div class="modal-content" ms-controller="reg">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close" ms-click="goBack"><span
                aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">新用户注册</h4>
    </div>
    <div class="modal-body" ms-controller="reg">
        <div class="row">
            <div class="col-md-10 col-md-offset-1">
                <form class="form-horizontal ">
                    必填项目：
                    <div class="form-group">

                        <label class="col-sm-2 control-label">用户名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"  placeholder="请输入用户名" ms-duplex="regAccount" ms-on-keyup="verifyUsername" ms-on-blur="submitUN">
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-2 control-label">密码</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control"  placeholder="请输入密码" ms-duplex="regPWD" ms-on-keyup="verifyPassword">
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-2 control-label">邮箱</label>
                        <div class="col-sm-10">
                            <input type="email" class="form-control"  placeholder="请输入电子邮箱用以找回密码" ms-duplex="regMail" ms-on-keyup="verifyEmail" ms-on-blur="submitEM">
                        </div>
                    </div>
                    <hr/>
                    选填项目：
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">电话</label>
                        <div class="col-sm-10">
                            <input type="number" class="form-control"  placeholder="请输入电话号码" ms-duplex="regTel">
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-2 control-label">姓名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"  placeholder="请输入姓名" ms-duplex="regName">
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-2 control-label">单位</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"  placeholder="请输入您的所在单位" ms-duplex="regUnit">
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-primary" ms-click="reg">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注册&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </button>
        <a href="#!/login" class="btn btn-default">
            用已有帐号登录
        </a>
    </div>
</div>